import {
	request
} from './http.js'

export function query(config) { //进件商户查询
	return request({
		url: '/incomingMch/query',
		method: 'post',
		data: config
	})
}

export function wxMchntNameCheck(config) { //重名检测
	return request({
		url: '/incomingMch/wxMchntNameCheck',
		method: 'post',
		data: config
	})
}

export function incomingChannel(config) { //进件商户查询
	return request({
		url: '/incomingChannel/query',
		method: 'post',
		data: config
	})
}

export function incomingBusiness(config) { //进件经营信息查询
	return request({
		url: '/incomingBusiness/query',
		method: 'post',
		data: config
	})
}

export function businessTree(params) { //进件经营信息查询
	return request({
		url: '/incomingBusiness/businessTree',
		method: 'get',
		data: params
	})
}

export function incomingCity(config) { //进件省市区查询
	return request({
		url: '/incomingCity/query',
		method: 'post',
		data: config
	})
}

export function uploadImage(config) { //上传图片
	return request({
		url: '/file/uploadImage',
		method: 'post',
		data: config
	})
}

export function addIncomingMch(config) { //商户基本资料新增
	return request({
		url: '/incomingMch/addIncomingMch',
		method: 'post',
		data: config
	})
}
export function editIncomingMch(config) { //商户新增
	return request({
		url: '/incomingMch/editIncomingMch',
		method: 'post',
		data: config
	})
}

export function incomingBankType(config) { //进件银行查询
	return request({
		url: '/incomingBankType/query',
		method: 'post',
		data: config
	})
}
export function incomingBank(config) { //进件银联号查询
	return request({
		url: '/incomingBank/query',
		method: 'post',
		data: config
	})
}

export function incomingRateFee(config) { //进件商户费率查询
	return request({
		url: '/incomingRateFee/query',
		method: 'post',
		data: config
	})
}

export function incomingMcc(config) { //进件mcc查询
	return request({
		url: '/incomingMcc/query',
		method: 'post',
		data: config
	})
}

export function incomingAdd(config) { //进件商户发送
	return request({
		url: '/incomingMch/incomingAdd',
		method: 'post',
		data: config
	})
}

export function elecContractGenerate(config) { //生成协议
	return request({
		url: '/incomingMch/elecContractGenerate',
		method: 'post',
		data: config
	})
}

